<?php
use yii\helpers\Url;
use yii\widgets\ActiveForm;

/* @var $model \app\models\User */

?>

<div class="mui-content">
    <div class="mui-content-padded">

        <?php $form = ActiveForm::begin([
                'id' => 'registerForm',
                'enableClientScript' => TRUE,
                'options' => ['class' => 'mui-input-group login-form']

        ]); ?>
            <div class="mui-input-row input-icon">
                <div class="icon icon-user"></div>
                <?= $form->field($model, 'phone')->textInput(['placeholder' => '请输入手机号'])->label(FALSE); ?>
            </div>
            <div class="mui-input-row input-icon">
                <div class="icon icon-yzm"></div>
                <?= $form->field($model, 'verifyCode')->textInput(['placeholder' => '请输入验证码'])->label(FALSE); ?>

                <button type="button" id="<?= Url::to(['verify', 'phone' => '']); ?>" class="mui-btn mui-btn-blue send-code">发送验证码</button>
            </div>
            <div class="mui-input-row input-icon mui-input-password">
                <div class="icon icon-password"></div>
                <?= $form->field($model, 'password')->passwordInput(['placeholder' => '请输入密码'])->label(FALSE); ?>
            </div>
            <div class="mui-input-row input-icon mui-input-password">
                <div class="icon icon-password"></div>
                <?= $form->field($model, 'password1')->passwordInput(['placeholder' => '请再次输入密码'])->label(FALSE); ?>
            </div>
            <button type="submit" class="mui-btn btn-ui mui-btn-block border-r5">注册</button>
        <?php ActiveForm::end(); ?>
    </div>
</div>